package com.glr.common.contants;

/**
 * @author GLoRy
 * @date 2021/6/1 11:13
 */
public enum CodeEnum {

    //成功
    SUCCEED(40000, "请求成功"),
    //失败
    FAILURE_EXCEPTION(20000, "请求失败");

    private final int code;
    private final String message;

    CodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
